using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Saiket.BLL;

public partial class Admin_NewsAdmin : System.Web.UI.Page
{
   
    BusinessLogicLayer bll = new BusinessLogicLayer();
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.MaintainScrollPositionOnPostBack = true;
    }
    protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
    {

        bll.GenerateNewsRSS(Server.MapPath("../media/feeds/NewsRSS.xml"));

    }
    protected void  DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
    {
        bll.GenerateNewsRSS(Server.MapPath("../media/feeds/NewsRSS.xml"));
    }
}
